package com.example.demo.service.order;

import com.example.demo.common.BasePageResponse;
import com.example.demo.common.ResultObject;
import com.example.demo.jooq.tables.pojos.Virtual;
import com.example.demo.jooq.tables.pojos.Vps;
import com.example.demo.model.request.VirtualPageRequest;
import com.example.demo.model.request.VirtualRequest;
import com.example.demo.model.request.VpsPageRequest;
import com.example.demo.model.response.VirtualResponse;
import com.example.demo.model.response.VpsResponse;

public interface IVirtualService {
    /**
     * 分页查询Vps
     * @param virtualPageRequest
     * @return ResultObject<BasePageResponse<VpsResponse>>
     */
    public ResultObject<BasePageResponse<VirtualResponse>> queryPageVirtualList(VirtualPageRequest virtualPageRequest);

    /**
     * 保存virtual
     * @param virtual 数据对象
     * @return ResultObject
     */
    public ResultObject saveVirtual(VirtualRequest virtual);

    /**
     * 分页查询Vps
     * @param virtualId
     * @return ResultObject<VirtualResponse>
     */
    public ResultObject<VirtualResponse> queryVirtuaDetail(String virtualId);

}
